// FileCheckDlg.h : header file
//

#if !defined(AFX_FileCheckDLG_H__2FB353BA_E7F9_4212_8BEB_C88C904E7408__INCLUDED_)
#define AFX_FileCheckDLG_H__2FB353BA_E7F9_4212_8BEB_C88C904E7408__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "common.h"
#include "MyListCtrl.h"

/////////////////////////////////////////////////////////////////////////////
// CFileCheckDlg dialog

class CFileCheckDlg : public CDialog
{
// Construction
public:
	CFileCheckDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFileCheckDlg)
	enum { IDD = IDD_FILECHECK_DIALOG };
	CMyListCtrl	m_myLstCtrl;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFileCheckDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFileCheckDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBrowse();
	afx_msg void OnSearch();
	afx_msg void OnDestroy();
	afx_msg void OnCheck();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	virtual void OnOK();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()


private:
	BOOL RetriveFiles(LPCTSTR lpszDir, FILEINFOLST& vecFileLst);
	EnumDocType IdentifyFileType(LPCTSTR lpszFileName);

	void SaveLog(LPCTSTR lpszFilePath);

	// Prepare the thread parameters
	long PrepareParameters();
	
private:
	UINT	m_nThreadCount;
	HANDLE* m_phThdCheckXLSLst;
	BOOL	m_bSrchXLS;
	BOOL	m_bSrchDOC;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FileCheckDLG_H__2FB353BA_E7F9_4212_8BEB_C88C904E7408__INCLUDED_)
